package com.sdy.resdir.biz.util;

import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;

/**
 * @author hyh
 */
public class DeCodeUtil {

    /**
     * 对中文参数进行解码,如果参数值为null,则返回null
     *
     * @param param
     * @return
     */
    public static String decodeParam(String param) throws UnsupportedEncodingException {
        if (null == param) {
            return null;
        } else {
            param = URLDecoder.decode(param, "UTF-8");
            return param;
        }
    }

}
